package com.glink.manage.dto.person;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.glink.common.serializer.JsonDate5DeSerializer;
import com.glink.common.serializer.JsonDate5Serializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
* @author  qiushaoshan
* @since 2025-01-13
*/
@ApiModel(value="PersonTrainingRecordSaveDTO对象", description="人员培训记录-保存")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PersonTrainingRecordSaveDTO implements Serializable {

    private static final long serialVersionUID = -2414260352077375713L;

    @ApiModelProperty(value = "人员ID")
    private String personObjId;
    
    @ApiModelProperty(value = "培训时间;yyyy-MM-dd HH:mm:ss")
    @JsonSerialize(using = JsonDate5Serializer.class)
    @JsonDeserialize(using = JsonDate5DeSerializer.class)
    private Date time;

    @ApiModelProperty(value = "培训内容")
    private String content;

    @ApiModelProperty(value = "培训证明")
    @NotBlank(message = "培训证明不能为空")
    private String prove;
}
